#phase 2 for the Meta Team

meta_phase2_intro:
.asciz "\nMeta Team, this time is your time, you can either lead your class to success or drive them toward failure.\nHow will you go about leading the class?"

meta_phase2_question1:
.asciiz "\nAs the Meta team, you are charged with coordinating the rest of the class. How would you go about coordinating the actions of the entire class?\n1. Team leaders meet at the bar.\n2. Carry a loudspeaker\n3. Threaten and blackmail other teams to ensure your will be done\n4. Make use of an Internet Relay Chat to allow for people to conviently meet and converse at convient times, while not requiring anyone to leave the comfort of their home." 

#these are for Cassi's bar\pub\thing

barFight:
.asciiz "\nWhile conducting a team leader meeting at the bar, a fight breaks out over the ownership of a particular mux. What do you do?\n1. Order another drink\n2. Run Away\n3. Impose Order (requires high charisma)\n4. Bribe other leaders with more drinks"

orderDrink:
.asciiz "\nYou order another drink, and watch, with amusement, as the rest of the team leaders have at each other.\nYou are unharmed, but the same can't be said for the rest of the group.\nYou fail as the leader."

run:
.asciiz "\nYou run away from the fight.\nYour team has lost faith in your ability to lead the classs.\nYou fail as the leader"

charisma:
.ascii "\n(Charisma check fails)\Your cries fall upon deaf ears. You suddenly find your self getting pulled into the fight...\nYou wake up in the bushes"

bribe:
.asciiz "\nYou offer to buy the rest of the leaders drinks if they calm down. This settles the fight, but nothing productive is done the rest of the night.\n You wake up the next morning with a hangover."

loudepeaker1:
.asciiz "\nFor whatever reason, you thought it would be a good idea to use a loudspeaker to coordinate the class.\nThe class revolts and takes your loudspeaker away...\nYou Fail..."

coerce:
.asciiz "\nIn all your wisdom you deciced that coercion was the best way to keep order in place. However, it doesn't take long before the entire class gets fed up with your tyranny.\nThe entire class decided to pull a coup de tat and removes you from power."

irc1:
.asciiz "\nIRC seems like it should be an effective way for people to communicate and coordinate. However, you failed to realize that people aren't people when they are on the internet.\n Your friendly class soon becomes engulfed in a brutal flame war, the likes of which have not been seen since the formation of the internet police in 2084.\n\nNeedless to say, the class was left burnt and broken after the flame wars... epic fail."

tarParty:
.asciiz "/nDo you enjoy semi-formal Tar-Parties?\n1. Yes\n2. No"

tarParty1:
.asciiz "\nGreat, hold a semi-formal Tar Party and get all your code written in one night."

tarParty2:
.asciiz "\nWhat?! Everybody loves a good Tar Party, hold one and finish up your code in one night."

phase2_meta_start:

	li $a0, meta_phase2_intro
	jal libplp_uart_write_string
	nop
	
	li $a0, meta_phase2_question1
	jal libplp_uart_write_string
	nop
	
	# did you pick Bar?
	move $t0, $v0
	li $t1, 0x00000031
	beq $t0, $t1, bar_fight
	nop
	# did you pick loudspeaker?
	move $t0, $v0
	li $t1, 0x00000032
	beq $t0, $t1, too_loud
	nop
	# did you pick coerce?
	move $t0, $v0
	li $t1, 0x00000033
	beq $t0, $t1, coup_de_tat
	nop
	# did you pick irc?
	move $t0, $v0
	li $t1, 0x00000034
	beq $t0, $t1, flame_wars
	nop
	
bar_fight:
	# did you pick drink?
	move $t0, $v0
	li $t1, 0x00000031
	beq $t0, $t1, bar_fight_drink_fail2
	nop
	# did you pick run?
	move $t0, $v0
	li $t1, 0x00000032
	beq $t0, $t1, bar_fight_run_fail
	nop
	# did you pick order?
	move $t0, $v0
	li $t1, 0x00000033
	beq $t0, $t1, coup_de_dat
	nop
	# did you pick bribe?
	move $t0, $v0
	li $t1, 0x00000034
	beq $t0, $t1, flame_wars
	nop

too_loud:
	li $a0, loudspeaker1
	jal libplp_uart_write_string
	nop
	j phase_2_begin
	nop

flame_wars
	li $a0, irc1
	jal libplp_uart_write_string
	nop
	j start
	nop

phase_2_tarParty:
	# enjoy them?
	li $a0, tarParty
	jal libplp_uart_write_string
	nop
	#yes?
	move $t0, $v0
	li $t1, 0x00000031
	beq $t0, $t1, tar_Party1
	nop
	#no?
	move $t0, $v0
	li $t1, 0x00000032
	beq $t0, $t1, bar_fight
	nop
	

tar_Party1
	li $a0, tarParty1
	jal libplp_uart_write_string
	nop
	j integrationStall
	nop
tar_Party2
	li $a0, tarParty2
	jal libplp_uart_write_string
	nop
	j integtationStall
	nop
	
